CURRENT_PATH := $(shell pwd)
KERNEL_DIR := /usr/local/energy/os/ebf_linux_kernel

# IIC_SRC := $(shell find ./ -name '*.c' ! -name "." ! -name ".*" ! -name "init*" ! -name "iic*" -printf "%f\n")
obj-m := iic.o oled.o mpu6050.o multitouch.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_PATH) -I./ modules

clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_PATH) clean

help:
	@echo "Usage:"
	@echo "  make     - build project"
	@echo "  make clean - remove build artifacts"

